#ifndef CHOOSEDITTASKS_H
#define CHOOSEDITTASKS_H

#include <QDialog>
#include <QSqlRelationalTableModel>
#include <QRegExpValidator>

namespace Ui {
    class ChoosEditTasks;
}

class ChoosEditTasks : public QDialog
{
    Q_OBJECT

public:
    explicit ChoosEditTasks(QWidget *parent = 0);
    ~ChoosEditTasks();

private slots:
    void on_comboBox_SelectTheme_currentIndexChanged(int index);

    void on_pushButton_DeleteSelected_clicked();

    void on_pushButton_SubmitNew_clicked();
    void showAnswersInList(bool show);

    void on_pushButton_clicked();

    void on_tableView_Tasks_doubleClicked(const QModelIndex &index);

private:
    Ui::ChoosEditTasks *ui;
    void fetchAllDataFromDB();
    void searchThisRow(int id=0);
    void themeSelectorsFill();
    void clearNewTaskForm();
    QSqlRelationalTableModel *smodel;
    QRegExpValidator *tasksRxV;
    bool tModifyMode;
    int tModifyID;
};

#endif // CHOOSEDITTASKS_H
